<?php

if(empty($cat)) $cat = 'random videos';
if(empty($right_side)) {$right_side = '';}
if(empty($left_side)) {$left_side = '';}
if(empty($content)) {$content = '';}

$right_side = $right_side . quick_info('Quick Summary','
users count: '.get_users_count().'
<br>subtitles count: '.get_subtitles_count().'
<br>videos count: '.get_videos_count().'
');

$right_side = $right_side . "<br>" . quick_links('Quick Links','
<a href="http://sourceforge.net/projects/onlinesubtitles/forums/forum/1758498" target="_blank">Open Discussion</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<a href="http://sourceforge.net/tracker/?group_id=534975&atid=2172715" target="_blank">Bugs</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<a href="http://sourceforge.net/projects/onlinesubtitles/forums/forum/1758499" target="_blank">Help Forum</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<a href="http://sourceforge.net/tracker/?group_id=534975&atid=2172718" target="_blank">Feature Requests</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<a href="http://sourceforge.net/projects/onlinesubtitles/forums/forum/1761558" target="_blank">Security Forum</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<a href="http://sourceforge.net/tracker/?group_id=534975&atid=2172716" target="_blank">Support Requests</a>
');

$options_list[0][0] = 'random videos';
$options_list[0][1] = 'index.php?page=modules&cat=random videos';
$options_list[1][0] = 'videos slide';
$options_list[1][1] = 'index.php?page=modules&cat=videos slide';
$options_list[2][0] = 'subtitles in process';
$options_list[2][1] = 'index.php?page=modules&cat=subtitles in process';

$left_side = $left_side . left_list('modules options',$options_list);

if($cat=='random videos')
{
if(read_module_option('random_videos', 'enable')=="1") {$enable_yes='selected="selected"';} else {$enable_no='selected="selected"';}

if(empty($enable_yes)){$enable_yes='';}
if(empty($enable_no)){$enable_no='';}

$content = $content . content_tabs($cat, "
                <div class='table'>
				<form method='post' action='index.php'>
                    <table class='listing form' cellpadding='0' cellspacing='0'>
                        <tr>
                            <th class='full' colspan='2'>random videos options</th>
                        </tr>
						
                        <tr>
                            <td width='172'><strong>enable module:</strong></td>
                            <td>
							<select name='enable'>
							<option value='1' ".$enable_yes.">yes</option>
							<option value='0' ".$enable_no.">no</option>
							</select>
							</td>
                        </tr>
                         <tr>
                            <td width='172'><strong>title:</strong></td>
                            <td><input type='text' name='title' value='".read_module_option('random_videos', 'title')."' /></td>
                        </tr>
                        <tr>
                            <td width='172'><strong>columns count:</strong></td>
                            <td><input type='text' name='cols' value='".read_module_option('random_videos', 'columns')."' /></td>
                        </tr>
                        <tr>
                            <td width='172'><strong>rows count:</strong></td>
                            <td><input type='text' name='rows' value='".read_module_option('random_videos', 'rows')."' /></td>
                        </tr>
                        <tr>
                            <td width='172'><strong>image width:</strong></td>
                            <td><input type='text' name='img_width' value='".read_module_option('random_videos', 'image_width')."' /></td>
                        </tr>
                        <tr>
                            <td width='172'><strong>image height:</strong></td>
                            <td><input type='text' name='img_height' value='".read_module_option('random_videos', 'image_height')."' /></td>
                        </tr>
						
						</table>
						<br>
						<input type='submit' value='save module options' />
						<input type='hidden' name='page' value='modules' />
						<input type='hidden' name='cat' value='random videos' />
						<input type='hidden' name='save_modules_options' value='yes' />
						</form>
                </div>
			
				
");
}

if($cat=='videos slide')
{
if(read_module_option('videos_slide', 'enable')=="1") {$enable_yes='selected="selected"';} else {$enable_no='selected="selected"';}

if(empty($enable_yes)){$enable_yes='';}
if(empty($enable_no)){$enable_no='';}

$content = $content . content_tabs($cat, "
                <div class='table'>
				<form method='post' action='index.php'>
                    <table class='listing form' cellpadding='0' cellspacing='0'>
                        <tr>
                            <th class='full' colspan='2'>random videos options</th>
                        </tr>
						
                        <tr>
                            <td width='172'><strong>enable module:</strong></td>
                            <td>
							<select name='enable'>
							<option value='1' ".$enable_yes.">yes</option>
							<option value='0' ".$enable_no.">no</option>
							</select>
							</td>
                        </tr>
						
						
						</table>
						<br>
						<input type='submit' value='save module options' />
						<input type='hidden' name='page' value='modules' />
						<input type='hidden' name='cat' value='videos slide' />
						<input type='hidden' name='save_modules_options' value='yes' />
						</form>
                </div>
			
				
");
}


if($cat=='subtitles in process')
{
if(read_module_option('subtitles_in_process', 'enable')=="1") {$enable_yes='selected="selected"';} else {$enable_no='selected="selected"';}
if(read_module_option('subtitles_in_process', 'view_title')=="1") {$view_title_yes='selected="selected"';} else {$view_title_no='selected="selected"';}
if(read_module_option('subtitles_in_process', 'view_video')=="1") {$view_video_yes='selected="selected"';} else {$view_video_no='selected="selected"';}
if(read_module_option('subtitles_in_process', 'view_desc')=="1") {$view_desc_yes='selected="selected"';} else {$view_desc_no='selected="selected"';}
if(read_module_option('subtitles_in_process', 'view_lang')=="1") {$view_lang_yes='selected="selected"';} else {$view_lang_no='selected="selected"';}
if(read_module_option('subtitles_in_process', 'view_done')=="1") {$view_done_yes='selected="selected"';} else {$view_done_no='selected="selected"';}
if(read_module_option('subtitles_in_process', 'view_join')=="1") {$view_join_yes='selected="selected"';} else {$view_join_no='selected="selected"';}

if(empty($enable_yes)){$enable_yes='';}
if(empty($enable_no)){$enable_no='';}
if(empty($view_title_yes)){$view_title_yes='';}
if(empty($view_title_no)){$view_title_no='';}
if(empty($view_video_yes)){$view_video_yes='';}
if(empty($view_video_no)){$view_video_no='';}
if(empty($view_desc_yes)){$view_desc_yes='';}
if(empty($view_desc_no)){$view_desc_no='';}
if(empty($view_lang_yes)){$view_lang_yes='';}
if(empty($view_lang_no)){$view_lang_no='';}
if(empty($view_done_yes)){$view_done_yes='';}
if(empty($view_done_no)){$view_done_no='';}
if(empty($view_join_yes)){$view_join_yes='';}
if(empty($view_join_no)){$view_join_no='';}



$content = $content . content_tabs($cat, "
                <div class='table'>
				<form method='post' action='index.php'>
                    <table class='listing form' cellpadding='0' cellspacing='0'>
                        <tr>
                            <th class='full' colspan='2'>subtitles in process options</th>
                        </tr>
						
                        <tr>
                            <td width='172'><strong>enable module:</strong></td>
                            <td>
							<select name='enable'>
							<option value='1' ".$enable_yes.">yes</option>
							<option value='0' ".$enable_no.">no</option>
							</select>
							</td>
                        </tr>
						
                         <tr>
                            <td width='172'><strong>title:</strong></td>
                            <td><input type='text' name='title' value='".read_module_option('subtitles_in_process', 'title')."' /></td>
                        </tr>

                         <tr>
                            <td width='172'><strong>number of subtitles:</strong></td>
                            <td><input type='text' name='number' value='".read_module_option('subtitles_in_process', 'subtitles_number')."' /></td>
                        </tr>

                         <tr>
                            <td width='172'><strong>image height:</strong></td>
                            <td><input type='text' name='height' value='".read_module_option('subtitles_in_process', 'image_height')."' /></td>
                        </tr>

                         <tr>
                            <td width='172'><strong>image width:</strong></td>
                            <td><input type='text' name='width' value='".read_module_option('subtitles_in_process', 'image_width')."' /></td>
                        </tr>

                        <tr>
                            <td width='172'><strong>view title:</strong></td>
                            <td>
							<select name='view_title'>
							<option value='1' ".$view_title_yes.">yes</option>
							<option value='0' ".$view_title_no.">no</option>
							</select>
							</td>
                        </tr>

                        <tr>
                            <td width='172'><strong>view video name:</strong></td>
                            <td>
							<select name='video'>
							<option value='1' ".$view_video_yes.">yes</option>
							<option value='0' ".$view_video_no.">no</option>
							</select>
							</td>
                        </tr>

                        <tr>
                            <td width='172'><strong>view description:</strong></td>
                            <td>
							<select name='desc'>
							<option value='1' ".$view_desc_yes.">yes</option>
							<option value='0' ".$view_desc_no.">no</option>
							</select>
							</td>
                        </tr>

                        <tr>
                            <td width='172'><strong>view language:</strong></td>
                            <td>
							<select name='lang'>
							<option value='1' ".$view_lang_yes.">yes</option>
							<option value='0' ".$view_lang_no.">no</option>
							</select>
							</td>
                        </tr>

                        <tr>
                            <td width='172'><strong>view process:</strong></td>
                            <td>
							<select name='done'>
							<option value='1' ".$view_done_yes.">yes</option>
							<option value='0' ".$view_done_no.">no</option>
							</select>
							</td>
                        </tr>

                        <tr>
                            <td width='172'><strong>view join link:</strong></td>
                            <td>
							<select name='join'>
							<option value='1' ".$view_join_yes.">yes</option>
							<option value='0' ".$view_join_no.">no</option>
							</select>
							</td>
                        </tr>						
						
						</table>
						<br>
						<input type='submit' value='save module options' />
						<input type='hidden' name='page' value='modules' />
						<input type='hidden' name='cat' value='subtitles in process' />
						<input type='hidden' name='save_modules_options' value='yes' />
						</form>
                </div>
");
}
?>
